<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>文件上传</h1>
    <!-- 文件上传表单method必须为POST enctype必须设置为multipart/form-data -->
    <form action="/upload" method="post" enctype="multipart/form-data">
        <label>上传图片:<input type="file" name="imageFile" accept="image/jpg,image/png"></label>
        <input type="submit" value="上传">
    </form>
</body>
</html>